package com.hefeng.service.impl;

import com.hefeng.domain.WxResidence;
import com.hefeng.mapper.WxResidenceMapper;
import com.hefeng.service.IWxResidenceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service

public class WxResidenceServiceImpl implements IWxResidenceService {
    @Autowired
    private WxResidenceMapper wxResidenceMapper;

    /**
     * 查询小区
     *
     * @param id 小区主键
     * @return 小区
     */
    @Override
    public WxResidence selectWxResidenceById(Integer id) {
        return wxResidenceMapper.selectWxResidenceById(id);
    }

    /**
     * 查询小区列表
     *
     * @param wxResidence 小区
     * @return 小区
     */
    @Override
    public List<WxResidence> selectWxResidenceList(WxResidence wxResidence) {
        return wxResidenceMapper.selectWxResidenceList(wxResidence);
    }

    /**
     * 新增小区
     *
     * @param wxResidence 小区
     * @return 结果
     */
    @Override
    public int insertWxResidence(WxResidence wxResidence) {
        return wxResidenceMapper.insertWxResidence(wxResidence);
    }

    /**
     * 修改小区
     *
     * @param wxResidence 小区
     * @return 结果
     */
    @Override
    public int updateWxResidence(WxResidence wxResidence) {
        return wxResidenceMapper.updateWxResidence(wxResidence);
    }

    /**
     * 批量删除小区
     *
     * @param ids 需要删除的小区主键
     * @return 结果
     */
    @Override
    public int deleteWxResidenceByIds(Integer[] ids) {
        return wxResidenceMapper.deleteWxResidenceByIds(ids);
    }



}
